package com.xx.springsecuritydemo.main.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class DemoController {
    @GetMapping("/admin")
    @ResponseBody
    public String admin() {
        return "admin";
    }
    @GetMapping("/user")
    @ResponseBody
    public String user() {
        return "user";
    }
    @GetMapping("/getInfo")
    @ResponseBody
    public String getInfo() {
        return "getInfo";
    }
}
